﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucTipoTelefono.ascx.cs" Inherits="CANO.WebSite.admin.UserControls.ucTipoTelefono" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>


<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="getAll"
    TypeName="CANO.Data.DAOs.TipoTelefonoDAO" />

<ext:GridPanel ID="gpTipoTelefono" runat="server" Title="Contactos" Frame="true" Height="300" Width="350">
    <Store>
        <ext:Store ID="Store1" runat="server" DataSourceID="ObjectDataSource1">
            <Reader>
                <ext:JsonReader IDProperty="TipoTelefonoID">
                    <Fields>
                        <ext:RecordField Name="TipoTelefonoID" />
                        <ext:RecordField Name="TipoTelefono" />
                    </Fields>
                </ext:JsonReader>
            </Reader>
        </ext:Store>
    </Store>
    <ColumnModel ID="ColumnModel1" runat="server">
        <Columns>
            <ext:Column DataIndex="TipoTelefonoID" Header="Tipo Telefono ID" Width="100" />
            <ext:Column DataIndex="TipoTelefono" Header="Tipo de Telefono" Width="150" />
        </Columns>
    </ColumnModel>
    <SelectionModel>
        <ext:RowSelectionModel ID="RowSelectionModel1" runat="server">
            <DirectEvents>
                <SelectionChange OnEvent="Cell_Click" />
            </DirectEvents>
        </ext:RowSelectionModel>
    </SelectionModel>
    <View>
        <ext:GridView ID="gpvTipoTelefono" runat="server" EnableRowBody="true">
        </ext:GridView>
    </View>
</ext:GridPanel>

